From: Carlos Garnacho Date: Fri, 26 Jan 2024 15:19:58 +0000 (+0100) Subject: keyboard: Rename function X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~1^2~86 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=86737583363f930d1d6159779277f834d0991d40;p=gnome-shell.git keyboard: Rename function Avoid the "ForGroup" suffix, and get the keyboard group implicitly. Part-of: --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index 05ac18a8b..0c68a5971 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -1486,7 +1486,8 @@ export const Keyboard = GObject.registerClass({ return layers; } - _ensureKeysForGroup(group) { + _ensureKeys() { + const group = this._keyboardController.getCurrentGroup(); if (!this._groups[group]) this._groups[group] = this._createLayersForGroup(group); } @@ -1788,7 +1789,7 @@ export const Keyboard = GObject.registerClass({ } _updateKeys() { - this._ensureKeysForGroup(this._keyboardController.getCurrentGroup()); + this._ensureKeys(); this._setActiveLayer(0); }